package com.ruyuan.seckilling.activity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @author zhonghuashishan
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("seckilling_activity_sku_ref")
public class ActivitySkuRef implements Serializable {
    private static final long serialVersionUID = -6192987609757268751L;

    // 主键
    private Long id;

    // 秒杀活动id
    private Long activityId;

    // 商品skuId
    private Long skuId;

    // 秒杀商品的原价
    private Integer price;

    // 秒杀商品的秒杀库存
    private Integer seckillingStock;

    // 下面三个字段是秒杀结束之后的库存状态
    private Integer salableStock;

    private Integer lockedStock;

    private Integer saledStock;

    // 秒杀商品的详情页是否已经渲染好了
    private Boolean pageReady;

    private Date createTime;

    private Date updateTime;
}
